package com.smxy.mall.service.impl;

import com.smxy.mall.dao.NoticeDao;
import com.smxy.mall.entity.Notice;
import com.smxy.mall.service.NoticeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NoticeServicelmpl implements NoticeService {

    @Resource
    private NoticeDao noticeDao;

    @Override
    public List<Notice> list() {
        return noticeDao.findByOrderByUpdateTimeDesc();
//        return noticeDao.findAll();
    }
}
